package com.qding.park.manager.service.queue.facade.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qding.park.common.core.exceptions.BaseException;
import com.qding.park.manager.facade.queue.service.BusinessFacade;
import com.qding.park.manager.pojo.TbMonthRent;
import com.qding.park.manager.pojo.TbReserve;
import com.qding.park.manager.service.queue.biz.MonthBiz;
import com.qding.park.manager.service.queue.biz.ReserveBiz;
import com.qding.park.manager.service.queue.biz.TempPayBiz;

@Service("businessFacade")
public class BusinessFacadeImpl implements BusinessFacade{
    
    @Autowired
    private MonthBiz monthBiz;
    
    @Autowired
    private ReserveBiz reserveBiz;
    
    @Autowired
    private TempPayBiz  tempPayBiz;

    @Override
    public void monthPayedAfter(TbMonthRent tbMonthRent) throws BaseException {
        monthBiz.monthPayedAfter(tbMonthRent);
    }

    @Override
    public void reservePayedHandle(TbReserve tbReserve) throws BaseException {
        reserveBiz.reservePayedHandle(tbReserve);
        
    }

    @Override
    public void reservePayedIssuedFailRollBack(TbReserve tbReserve) {
        reserveBiz.issuedFailRollBack(tbReserve);
        
    }

  
    /**
     * @Description (临停缴费支付完成)
     * @param tbReserve
     */
    @Override
    public void tempPayed(TbReserve tbReserve) throws BaseException{
        tempPayBiz.tempPayed(tbReserve);
        
    }

    @Override
    public void tempPayedIssuedFailRollBack(TbReserve tbReserve) {
        tempPayBiz.tempIssuedFailRollBack(tbReserve);
        
    }

    @Override
    public void teneratPayed(TbReserve tbReserve) throws BaseException {
        tempPayBiz.teneratPayed(tbReserve);
    }

}
